package com.homework.work03;

/*
数组的定义与静态初始化
 */
public class ArrayDemo2 {
    public static void main(String[] args) {
        //数组的声明
        // String[] arr = new String[]{"乔峰","段誉","杨过"};
        //简写
        String[] arr = {"乔峰","段誉","杨过"};
        //取值
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
    }
}
